<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>   --%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>基本资料</title>
<link rel="shortcut icon" href="/images/user/favicon.png" type="image/x-icon">
<link type="text/css" rel="stylesheet" href="/css/user/global.css" />
<link type="text/css" rel="stylesheet" href="/css/user/users/change_password.css">
<link href="/css/user/users/member_center.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="/css/dialog.min.css">
<style type="text/css">
.errormsg {
background: url(/images/user/users/register/cuowu.png) no-repeat left center;
padding-left: 20px;
margin-left: 10px;
color: #f00;
}
}
</style>
<script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
<script src="/js/user/users/member_center/member_information/member_information.js"></script>	
<script type="text/javascript" src="/js/user/users/member_center/menu_line.js"></script>
<script type="text/javascript" src="/js/dialog.min.js"></script>
<script type="text/javascript" src="/js/bstdialog.min.js"></script>
<script type="text/javascript"  src="/js/user/users/member_center/member_information/basic_info.js"></script>
<script type="text/javascript" src="/js/place.js"></script>
</head>
<body>
<input type="hidden" id="requestURI" value="${requestURI}"/>
<input type="hidden" id="isYun" value="${user.isYun}">
<input type="hidden" id="roleId" value="${user.roleId}">
<div class="Wrapper">
	<!--会员中心头部-->
	<jsp:include page="../../../common/member/memberHeader.jsp"></jsp:include>
    <!--会员中心头部-->
    <!--会员中心中间部分-->
    <div class="uc_bd mt20 mb20 ">
    	<div class="uc_layer">
            <div class="account">
                <!--会员信息左侧-->
                <jsp:include page="../../../common/member/member_information/left.jsp"></jsp:include>
            	<!--会员信息左侧-->
                <!--基本资料右侧-->
                <div class="member_r fr">
                	<div class="uitopb uitopb_border">
                    	<div class="lm-t tabs">基本资料</div>
                        <div class="uc_content order">
                        	
                            <!--个人信息表单开始-->
                            <form id="personForm" >
                            <p>请完善以下信息,以便我们更好的为您服务</p>
                            <!--基本信息开始-->
                            <div class="basic mt20">
                           	  	<h4>基本信息</h4>
                                <dl>
                                	<dt>姓名：</dt>
                                    <dd>
                                      <input name="realName" type="text" id="realName" value="${user.realName}" class="inputtext" />
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                              	<dl>
                               		<dt>性别：</dt>
                               		<input type="hidden" value="${user.sex}" id="sex" />
                                    <dd>
                                            <label>
                                              <input type="radio" name="sex" value="0" id="Male" class="radio ml20" />
                                              男</label>
                                            <label>
                                            <input type="radio" name="sex" value="1" id="Women"  class="radio ml20" />
                                              女</label>
                                            <label>
                                            <input type="radio" name="sex" value="2" id="Privacy"  class="radio ml20" />
                                              保密</label>
                                    </dd>
                                    <div class="clear"></div>
                              	</dl>
                  				<dl>
                                	<dt>出生日期：</dt>
                                    <dd><input name="birthday" type="text" id="birthday" readonly="true" style="height:28px;"
                                    <c:if test="${user.birthday==null}">value=""</c:if>
                                    <c:if test="${user.birthday!=null}"> value=<fmt:formatDate pattern="yyyy-MM-dd" value="${user.birthday}" type="both"/></c:if>
                                     class="inputtext date Wdate" onClick="WdatePicker()"/> 
                                    </dd>
                                    <div class="clear"></div>
                              	</dl>
                            </div>
                            <!--基本信息结束-->
                            <!--个人联系信息开始-->
                            <div class="basic mt20">
           	  	        		<h4>个人联系信息</h4>
                                <dl>
                                	<dt>联系电话：</dt>
                                    <dd><input name="phone" type="text" id="phone" value="${user.phone}" class="inputtext" /></dd>
                                    <div class="clear"></div>
                                </dl>
                                <dl>
                                	<dt>固定电话：</dt>
                                    <dd><input name="fixationTel" type="text" id="fixationTel" value="${user.fixationTel}" class="inputtext" /></dd>
                                    <div class="clear"></div>
                           	  	</dl>
           		  				<dl>
                                	<dt>邮箱：</dt>
                                    <dd><input name="personEmail" type="text" id="personEmail" value="${user.personEmail}" class="inputtext" /></dd>
                                    <div class="clear"></div>
                           	  	</dl>
       	  		 	 			<dl>
                                	<dt>传真：</dt>
                                    <dd><input name="fax" type="text" id="fax" value="${user.fax}" class="inputtext" /></dd>
                                    <div class="clear"></div>
                                </dl>
                                <dl>
                                	<dt>所在地址：</dt>
                                    <dd class="mb10">
                                      <select name="provinceCode" id="provinceCode" class="selectaddress" onchange="cityByProvince(this.value);">
                                        <c:if test="${province!=null}"><option value="${province.provinceCode }">${province.provinceName }</option></c:if>
                                        <c:if test="${province==null}"><option value="">选择省份</option></c:if>
               	  	    				<c:forEach items="${provinceList}" var="province">
            	  	    				<option value="${province.provinceCode }">${province.provinceName }</option>
               	  	    				</c:forEach>
                                      </select>
                                      <select name="cityCode" id="cname" class="selectaddress" onchange="areaByCity(this.value);">
                                        <c:if test="${city!=null}"><option value="${city.cityCode }">${city.cityName }</option></c:if>
                                        <c:if test="${city==null}"><option value="">市级</option></c:if>
                                      </select>
                                      <select name="areaCode" id="area" class="selectaddress">
                                      	<c:if test="${area!=null}"><option value="${area.areaCode }">${area.areaName}</option></c:if>
                                        <c:if test="${area==null}"><option value="">区县</option></c:if>
					           	  	  </select>
                                    </dd>
                                    <dd><input name="address" type="text" id="address" value="${user.address}" class="inputtext address" /></dd>
                                    <div class="clear"></div>
                                </dl>
                            </div>
                            <!--个人联系信息结束-->
                            <!--工作信息开始-->
                            <div class="basic mt20">
                            	<h4>工作信息</h4>
                                <dl>
                                	<dt>所在公司：</dt>
                                    <dd><input name="belongCompanyName" type="text" id="belongCompanyName" value="${user.belongCompanyName}" class="inputtext" /></dd>
                                    <div class="clear"></div>
                              	</dl>
                                <dl>
                                	<dt>公司行业：</dt>
                                    <dd>
                                   	  <select name="companyIndustryId" id="companyIndustryId" class="selectaddress industry">
                                   	  	<c:if test="${companyIndustry!=null}"><option value="${companyIndustry.companyIndustryId}">${companyIndustry.companyIndustryName }</option></c:if>
                                        <c:if test="${companyIndustry==null}"><option value="">选择行业</option></c:if>
                                   	  	<c:forEach items="${companyIndustries}" var="companyIndustry">
            	  	    					<option value="${companyIndustry.companyIndustryId}">${companyIndustry.companyIndustryName }</option>
               	  	    			 	</c:forEach>
                                      	</select>
                                    </dd>
                                    <div class="clear"></div>
                              	</dl>
                                <dl>
                                	<dt>公司规模：</dt>
                                    <dd>
                                    	<select name="companyScaleId" id="companyScaleId" class="selectaddress industry">
                                    		<c:if test="${companyScale!=null}"><option value="${companyScale.companyScaleId}">${companyScale.companyScaleName }</option></c:if>
                                       	 	<c:if test="${companyScale==null}"><option value="">选择规模</option></c:if>
                                        	<c:forEach items="${companyScales}" var="companyScale">
            	  	    						<option value="${companyScale.companyScaleId}">${companyScale.companyScaleName }</option>
               	  	    			 		</c:forEach>
                                      	</select>
                                    </dd>
                                    <div class="clear"></div>
                              	</dl>
                                <dl>
                                	<dt>职位：</dt>
                                    <dd><input name="companyPosition" type="text" id="companyPosition" value="${user.companyPosition}" class="inputtext" /></dd>
                                    <div class="clear"></div>
                              	</dl>
                            </div>
                            <!--工作信息结束-->
                            <div class="mt20"><input type="button" name="button" id="button" value="保存"  class="basicbtn" /> </div>
                          </form>
                          <!--个人信息表单结束-->
                          <!--企业信息表单开始-->
                          <form action="" style="display:none" id="companyForm">
                            <!--基本信息开始-->
                            <div class="basic mt20">
                           	  	<!-- <h4>基本信息</h4> -->
                                <dl>
                                	<dt>公司名称：</dt>
                                    <dd>
                                      <input name="belongCompanyName" type="text" id="" value="${user.belongCompanyName}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                                <dl>
                                	<dt>公司域名：</dt>
                                    <dd>
                                      <input name="companyDomainName" type="text" id="companyDomainName" value="${user.companyDomainName}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                                 <dl>
                                	<dt>公司规模：</dt>
                                    <dd>
                                   		<c:choose>  
  											<c:when test="${companyScale.companyScaleId==null}"> 
  												<input name="companyScaleId" type="text" id="" value="" class="inputtext" readonly="true"/>
  											</c:when>  
  											<c:otherwise>
  												<input name="companyScaleId" type="text" id="" value="${companyScale.companyScaleName }" class="inputtext" readonly="true"/>
  											</c:otherwise>  
										</c:choose>  
                                    </dd>
                                    <div class="clear"></div>
                              	</dl>
                                <dl>
                                	<dt>公司行业：</dt>
                                    <dd>
                                   		<c:choose>  
  											<c:when test="${companyIndustry.companyIndustryId==null}"> 
  												<input name="companyIndustryId" type="text" id="companyScaleId" value="" class="inputtext" readonly="true"/>
  											</c:when>  
  											<c:otherwise>
  												<input name="companyIndustryId" type="text" id="companyScaleId" value="${companyIndustry.companyIndustryName}" class="inputtext" readonly="true"/>
  											</c:otherwise>  
										</c:choose>  
                                    </dd>
                                    <div class="clear"></div>
                              	</dl>
                               <dl>
                                	<dt>主叫号码：</dt>
                                    <dd>
                                      <input name="callPhone" type="text" id="callPhone" value="${user.callPhone}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                                <dl>
                                	<dt>联系人姓名：</dt>
                                    <dd>
                                      <input name="contactName" type="text" id="contactName" value="${user.contactName}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                                <dl>
                                	<dt>联系人电话：</dt>
                                    <dd>
                                      <input name="contactName" type="text" id="" value="${user.phone}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                              	<dl>
                                	<dt>所在地址：</dt>
                                    <dd><input name="address" type="text" id="" value="${detailAddress}" class="inputtext address" readonly="true"></dd>
                                    <div class="clear"></div>
                                </dl>
                            </div>
                            <!--企业基本信息结束-->
                          </form>
                          <!--企业信息表单结束-->
                          <!--代理商表单开始-->
                          <form action="" style="display:none" id="supplierForm">
                            <!--代理商基本信息开始-->
                            <div class="basic mt20">
                                <h4>代理商基本信息：</h4>
                                <dl>
                                	<dt>单位名称：</dt>
                                    <dd>
                                      <input name="belongCompanyName" type="text" id="" value="${supplier.belongCompanyName}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                                <dl>
                                	<dt>联系人：</dt>
                                    <dd>
                                      <input name="realName" type="text" id="realName" value="${supplier.realName}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                                <dl>
                                	<dt>联系手机：</dt>
                                    <dd>
                                      <input name="userTel" type="text" id="userTel" value="${supplier.userTel}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                                <dl>
                                	<dt>固定电话：</dt>
                                    <dd>
                                      <input name="fixationTel" type="text" id="fixationTel" value="${supplier.fixationTel}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                                <dl>
                                	<dt>邮件地址：</dt>
                                    <dd>
                                      <input name="userEmail" type="text" id="userEmail" value="${supplier.userEmail}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                                <dl>
                                	<dt>申请类型：</dt>
                                    <dd>
                                   		<c:choose>  
  											<c:when test="${supplier.applyType==1}"> 
  												<input name="applyType" type="text" id="" value="代理商加盟" class="inputtext" readonly="true"/>
  											</c:when>  
  											<c:when test="${supplier.applyType==2}"> 
  												<input name="applyType" type="text" id="" value="市总代加盟" class="inputtext" readonly="true"/>
  											</c:when>  
  											<c:when test="${supplier.applyType==3}"> 
  												<input name="applyType" type="text" id="" value="省总代加盟" class="inputtext" readonly="true"/>
  											</c:when>  
  											<c:when test="${supplier.applyType==4}"> 
  												<input name="applyType" type="text" id="" value="软件开发商加盟" class="inputtext" readonly="true"/>
  											</c:when>  
  											<c:when test="${supplier.applyType==5}"> 
  												<input name="applyType" type="text" id="" value="OEM加盟" class="inputtext" readonly="true"/>
  											</c:when>  
  											<c:otherwise>
  												<input name="applyType" type="text" id="" value="销售人员加盟" class="inputtext" readonly="true"/>
  											</c:otherwise>  
										</c:choose>  
                                    </dd>
                                    <div class="clear"></div>
                              	</dl>
                              	<dl>
                                	<dt>公司行业：</dt>
                                    <dd>
  										<input name="companyIndustryId" type="text" id="companyIndustryId" value="${supplier.companyIndustryName}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                              	</dl>
                                <dl>
                                	<dt>公司规模：</dt>
                                    <dd>
  										<input name="companyScaleId" type="text" id="" value="${supplier.companyScaleName}" class="inputtext" readonly="true"/>
                                    </dd>
                                    <div class="clear"></div>
                              	</dl>
                                <dl>
                                	<dt>公司地址：</dt>
                                    <dd>
                                      <textarea name="address" id="tt1" class="inputtext" readonly="true">${supplier.provinceCodeName}${supplier.cityCodeName}${supplier.areaCodeName}${supplier.address}</textarea>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                                <dl>
                                	<dt>企业介绍：</dt>
                                    <dd>
                                      <textarea name="companyIntroduction" id="tt2" class="inputtext" readonly="true">${supplier.companyIntroduction}</textarea>
                                    </dd>
                                    <div class="clear"></div>
                                </dl>
                            </div>
                            <!--代理商基本信息结束-->
                          </form>
                          <!--代理商表单结束-->
                      	</div>
                    </div>
                </div>
                <!--会员中心右侧-->
                <div class="cl"></div>
			</div>
      	</div>
    </div>
    <!--会员中心中间部分-->
    <!---------------------------------footer------------------------------------>
  	<jsp:include page="../../../common/footer.jsp"/>
  	<!---------------------------------footer结束------------------------------------>
</div>
</body>
</html>
